package com.thyrsus.project.object;

import java.io.Serializable;

import com.thyrsus.project.dao.event.entity.Event;
import com.thyrsus.project.form.event.EventForm;

/**
 * 
 * @author maximiliense
 *
 */
public class EventObject implements Serializable{

	private static final long serialVersionUID = -4319503597013833159L;
	
	private Long id;
	
	private String name;
	
	private String description;

	public EventObject(){}
	
	public EventObject(EventForm event) {
		this.name = event.getName();
		this.description = event.getDescription();
	}
	
	public EventObject(Event event) {
		this.name = event.getName();
		this.description = event.getDescription();
		this.id = event.getId().getId();
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
}
